(navigation image)
Home Animation & Cartoons | Arts & Music | Community Video | Computers & Technology | Cultural & Academic Films | Ephemeral Films | Movies | News & Public Affairs | Prelinger Archives | Spirituality & Religion | Sports Videos | Television | Videogame Videos | Vlogs | Youth Media
Search: Advanced Search
Anonymous User (login or join us) Upload

View movie

[item image]
View thumbnails
Run time: 61 minutes 25 seconds

Play / Download (help[help])

(78.3 M)512Kb MPEG4
(194.7 M)Windows Media
(269.3 M)Ogg Video


All Files: HTTP

Resources

Bookmark

DrupalCon SF 2010: Theme Preprocess Functions: an Introduction

You are using our new video/audio player!
I prefer flash (when possible)
Give us feedback!

How many times has this happened to you: You're theming a Drupal site, writing your CSS and making a few changes to the tpl files here and there. Everything is going great, then suddenly you realize you need to change one of those things that starts with a "$" inside those funny-looking tags. Panic!

You exclaim...

"Crap! Where does come from?! How do I change it?!"

or maybe...

"Crap! I need to have an extra CSS class on this body tag that depends on the taxonomy of the node on the page! Is that possible?!"

or perhaps even...

"Crap! This view is perfect, and it even says which posts are unread, but I need to have the background color for unread item to be different! How can I get that working?!"

Sound familiar?

Preprocess functions are the diplomats of Drupal themes. They are the missing link between what happens in the modules, and what gets sent to the template files.

In this session, we'll dispel PHP fears, and get our feet wet with a little code that goes a long way to helping out with improving the flexibility of our theme.

Prerequisites: Some experience with Drupal theming, general understanding of the templating system, good understanding of HTML and CSS, some basic familiarity with PHP.


This movie is part of the collection: Community Video

Audio/Visual: sound, color
Keywords: DrupalCon 2010; education; entertainment; library; marketing; media; non-profit; Intermediate; Advanced; Expert


Individual Files

Movie Files Ogg Video Windows Media 512Kb MPEG4
mon_1100_304.wmv 269.3 MB
194.7 MB
78.3 MB
Image Files Thumbnail Animated GIF
mon_1100_304.wmv 6.2 KB
344.6 KB
Information FormatSize
ThemePreprocessFunctionsAnIntroduction_files.xml Metadata [file]
ThemePreprocessFunctionsAnIntroduction_meta.xml Metadata 2.0 KB

Be the first to write a review
Downloaded 1,503 times
Reviews


Terms of Use (10 Mar 2001)